package o;

import java.util.LinkedHashMap;

public class edy implements edx {
    public void ˋ() {
        if (dss.ॱ().ˎ()) {
            LinkedHashMap linkedHashMap = new LinkedHashMap(2);
            linkedHashMap.put("networkType", ˏ());
            linkedHashMap.put("downloadTask", String.valueOf(ˊ()));
            cdl.ˎ("044", linkedHashMap);
        }
    }

    public void ˋ(int i) {
        edj ˋ = edh.ˋ(ContentManager.getInstant().getContext());
        LinkedHashMap linkedHashMap = new LinkedHashMap(5);
        linkedHashMap.put("type", String.valueOf(i));
        linkedHashMap.put("updateSize", String.valueOf(ˊ()));
        linkedHashMap.put("isCharging", ˊ(ˋ));
        linkedHashMap.put("wlanSwitch", ॱ());
        linkedHashMap.put("networkType", ˏ());
        cdl.ˎ("047", linkedHashMap);
    }

    public void ˎ() {
        LinkedHashMap linkedHashMap = new LinkedHashMap();
        linkedHashMap.put("updateSize", String.valueOf(ˊ()));
        cdl.ˎ("051", linkedHashMap);
    }

    public void ˏ(String str, String str2) {
        LinkedHashMap linkedHashMap = new LinkedHashMap();
        linkedHashMap.put("packageName", str2);
        cdl.ˎ(str, linkedHashMap);
    }

    public void ˋ(String str, String str2) {
        LinkedHashMap linkedHashMap = new LinkedHashMap();
        linkedHashMap.put("packageName", str);
        linkedHashMap.put("gamePkg", str2);
        cdl.ˎ("053", linkedHashMap);
    }

    public void ˊ(String str) {
        LinkedHashMap linkedHashMap = new LinkedHashMap();
        linkedHashMap.put("packageName", str);
        cdl.ˎ("057", linkedHashMap);
    }

    private String ॱ() {
        return dss.ॱ().ˎ() ? "1" : "0";
    }

    private String ˊ(edj o_edj) {
        return o_edj.ॱ ? "1" : "0";
    }

    private String ˏ() {
        return String.valueOf(doo.ʼ(ContentManager.getInstant().getContext()));
    }

    private int ˊ() {
        return dss.ॱ().ˋ(true, 1);
    }
}
